<?php

$rows = array( array('入库单号', '材料编号', '材料名称', '品牌', '规格', '单位', '数量', '单价', '金额', 
	'入库时间', '入库类型', '仓库', '质检/移交', '备注',) );
if($list) foreach($list as $ware){
	$rows[] = array($ware['bound_sno'], $ware['sno'], $ware['name'], $ware['brand'], $ware['specific'], $ware['unit'],
			$ware['amount'], fnum($ware['price']), fnum($ware['price']*$ware['amount']), date('Y-m-d H:i', $ware['addtime']),
			BoundHelper::type2txt($ware['type']), $ware['warehouse'], 
			join(' ', UserHelper::getNamesByIds(explode(',',$ware['reviewers']))), $ware['remark '] );
}
Exporter::csv($rows, '入库明细');

?>
